package com.tuanzi.loan.business.service.family.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.retry.RetryException;
import org.springframework.retry.annotation.Retryable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.tuanzi.loan.business.entity.family.ApiActivity;
import com.tuanzi.loan.business.repository.family.ApiActivityRepository;
import com.tuanzi.loan.business.service.family.ApiActivityService;
import com.tuanzi.loan.core.aspect.Debug;
import com.tuanzi.loan.core.repository.JPAAuditRepository;
import com.tuanzi.loan.core.service.BaseAuditServiceImpl;

/**
 * @author Ray 2017/09/21
 */
@Debug
@Service
@Transactional
@Retryable(value = { RetryException.class })
public class ApiActivityServiceImpl extends BaseAuditServiceImpl<ApiActivity, Long> implements ApiActivityService {

    @Autowired
    private ApiActivityRepository apiActivityRepository;

    @Override
    protected JPAAuditRepository<ApiActivity, Long> getRepository() {
        return apiActivityRepository;
    }
}
